package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 学期信息表单对象
 *
 * @author youlaitech
 * @since 2025-06-15 16:25
 */
@Getter
@Setter
@Schema(description = "学期信息表单对象")
public class SemesterForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "显示顺序")
    private Integer dispOrder;

    @Schema(description = "英文名称")
    @Size(max=100, message="英文名称长度不能超过100个字符")
    private String nameEnUs;

    @Schema(description = "中文名称（简体）")
    @NotBlank(message = "中文名称（简体）不能为空")
    @Size(max=100, message="中文名称（简体）长度不能超过100个字符")
    private String nameZhCn;

    @Schema(description = "中文名称（繁体）")
    @Size(max=100, message="中文名称（繁体）长度不能超过100个字符")
    private String nameZhBig;

    @Schema(description = "类型，1表示学期")
    private Integer type;

    @Schema(description = "是否免费，1免费")
    private Integer showFree;

    @Schema(description = "内容描述")
    @Size(max=65535, message="内容描述长度不能超过65535个字符")
    private String content;

    @Schema(description = "状态，1启用")
    private Integer status;

    @Schema(description = "图片路径或URL")
    @Size(max=255, message="图片路径或URL长度不能超过255个字符")
    private String picture;


}
